﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MVCBug.Models.Tasks>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Task
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Task</h2>

    <fieldset>
        <legend>Fields</legend>
        
        <div class="display-label">TaskID</div>
        <div class="display-field"><%: Model.TaskID %></div>
        
        <div class="display-label">Title</div>
        <div class="display-field"><%: Model.Title %></div>
        
        <div class="display-label">Text</div>
        <div class="display-field"><%: Model.Text %></div>
        
        <div class="display-label">CreatedOn</div>
        <div class="display-field"><%: String.Format("{0:g}", Model.CreatedOn) %></div>
        
        <div class="display-label">State</div>
        <div class="display-field"><%: Model.States.Title %></div>
        
        <div class="display-label">AssignedOn</div>
        <div class="display-field">
        
        <%if (Model.aspnet_Users != null)
          {%>
        
        <%= Model.aspnet_Users.LoweredUserName %>
        
        <%} %>
        </div>
        
    </fieldset>
    <p>

        <%: Html.ActionLink("Edit", "Edit", new { id=Model.TaskID }) %> |
        <%: Html.ActionLink("Back to List", "List") %>
    </p>

</asp:Content>

